package com.example.demo.entity.dataSource1;

import com.example.demo.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Wen Gao on 2018/7/11.
 */
@ApiModel(value = "member对象")
@JsonView(MemberEntity.WithoutPasswordView.class) // https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-responseentity
public class MemberEntity extends BaseEntity implements Serializable
{

    public interface WithoutPasswordView {};
    public interface WithPasswordView extends WithoutPasswordView {};

    private static final long serialVersionUID = 1650917467567803661L;
    @ApiModelProperty(value = "member uid")
    private long uid;
    @ApiModelProperty(value = "member name")
    private String name;
    @ApiModelProperty(value = "member cleanname")
    private String cleanname;
    @ApiModelProperty(value = "member firstname")
    private String firstname;
    @ApiModelProperty(value = "member lastname")
    private String lastname;
    @ApiModelProperty(value = "密码")
    @JsonView(WithPasswordView.class)
    private String password;
    @ApiModelProperty(value = "member默认语言")
    private int language;
    @ApiModelProperty(value = "member 邮箱")
    private String email;
    private String otherEmails;
    @ApiModelProperty(value = "member 职位")
    private String title;
    private String officephone;
    private String homephone;
    private String cellphone;
    private String fax;
    private String msn;
    private String sinaWeibo;
    private String tencentWeibo;
    private String tencentQQ;
    private String geographyCode;
    private String address;
    private String postcode;
    private int roles;
    private int profiles;
    private Date createtime;
    private int status;
    private int bureau;
    private String wechat;
    private String linkedin;
    private String facebook;
    private String twitter;
    /**0:不是中国大陆,接收ICO新闻稿 1:是中国大陆,不接收ICO新闻稿*/
    @ApiModelProperty(value = "0:不是中国大陆,接收ICO新闻稿 1:是中国大陆,不接收ICO新闻稿")
    private int cnMainLand;


//    @JsonView(WithoutPasswordView.class)
    public long getUid()
    {
        return uid;
    }
    public void setUid(long uid)
    {
        this.uid = uid;
    }
//    @JsonView(WithoutPasswordView.class)
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public String getCleanname()
    {
        return cleanname;
    }
    public void setCleanname(String cleanname)
    {
        this.cleanname = cleanname;
    }
    public String getFirstname()
    {
        return firstname;
    }
    public void setFirstname(String firstname)
    {
        this.firstname = firstname;
    }
    public String getLastname()
    {
        return lastname;
    }
    public void setLastname(String lastname)
    {
        this.lastname = lastname;
    }
    public String getPassword()
    {
        return password;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }
    public int getLanguage()
    {
        return language;
    }
    public void setLanguage(int language)
    {
        this.language = language;
    }
    public String getEmail()
    {
        return email;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }
    public String getOtherEmails()
    {
        return otherEmails;
    }
    public void setOtherEmails(String otherEmails)
    {
        this.otherEmails = otherEmails;
    }
    public String getTitle()
    {
        return title;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }
    public String getOfficephone()
    {
        return officephone;
    }
    public void setOfficephone(String officephone)
    {
        this.officephone = officephone;
    }
    public String getHomephone()
    {
        return homephone;
    }
    public void setHomephone(String homephone)
    {
        this.homephone = homephone;
    }
    public String getCellphone()
    {
        return cellphone;
    }
    public void setCellphone(String cellphone)
    {
        this.cellphone = cellphone;
    }
    public String getFax()
    {
        return fax;
    }
    public void setFax(String fax)
    {
        this.fax = fax;
    }
    public String getMsn()
    {
        return msn;
    }
    public void setMsn(String msn)
    {
        this.msn = msn;
    }
    public final String getSinaWeibo()
    {
        return sinaWeibo;
    }
    public final void setSinaWeibo(String sinaWeibo)
    {
        this.sinaWeibo = sinaWeibo;
    }
    public final String getTencentWeibo()
    {
        return tencentWeibo;
    }
    public final void setTencentWeibo(String tencentWeibo)
    {
        this.tencentWeibo = tencentWeibo;
    }
    public String getTencentQQ()
    {
        return tencentQQ;
    }
    public void setTencentQQ(String tencentQQ)
    {
        this.tencentQQ = tencentQQ;
    }
    public final String getGeographyCode()
    {
        return geographyCode;
    }
    public final void setGeographyCode(String geographyCode)
    {
        this.geographyCode = geographyCode;
    }
    public String getAddress()
    {
        return address;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }
    public String getPostcode()
    {
        return postcode;
    }
    public void setPostcode(String postcode)
    {
        this.postcode = postcode;
    }
    public int getRoles()
    {
        return roles;
    }
    public void setRoles(int roles)
    {
        this.roles = roles;
    }
    public int getProfiles()
    {
        return profiles;
    }
    public void setProfiles(int profiles)
    {
        this.profiles = profiles;
    }
    public Date getCreatetime()
    {
        return createtime;
    }
    public void setCreatetime(Date createtime)
    {
        this.createtime = createtime;
    }
    public int getStatus()
    {
        return status;
    }
    public void setStatus(int status)
    {
        this.status = status;
    }
    public int getBureau()
    {
        return bureau;
    }
    public void setBureau(int bureau)
    {
        this.bureau = bureau;
    }
    public void initialize()
    {
        name = "";
        cleanname = "";
        firstname = "";
        lastname = "";
        password = "";
        email = "";
        otherEmails = "";
        title = "";
        officephone = "";
        homephone = "";
        cellphone = "";
        fax = "";
        msn = "";
        sinaWeibo = "";
        tencentWeibo = "";
        tencentQQ = "";
        geographyCode = "";
        address = "";
        postcode = "";
        createtime = new Date();
        linkedin = "";
        wechat = "";
        facebook = "";
        twitter = "";
        cnMainLand = 0;
    }
    public String getWechat() {
        return wechat;
    }
    public void setWechat(String wechat) {
        this.wechat = wechat;
    }
    public String getLinkedin() {
        return linkedin;
    }
    public void setLinkedin(String linkedin) {
        this.linkedin = linkedin;
    }
    public String getFacebook() {
        return facebook;
    }
    public void setFacebook(String facebook) {
        this.facebook = facebook;
    }
    public String getTwitter() {
        return twitter;
    }
    public void setTwitter(String twitter) {
        this.twitter = twitter;
    }
    public int getCnMainLand() {
        return cnMainLand;
    }
    public void setCnMainLand(int cnMainLand) {
        this.cnMainLand = cnMainLand;
    }
}